import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import path from "path";
import tailwindcss from "tailwindcss";
import autoprefixer from "autoprefixer";
// https://vite.dev/config/
export default defineConfig({
  envPrefix: "SYSTEM_",
  base: "./",
  plugins: [vue()],
  resolve: {
    alias: {
      "@": path.resolve(__dirname, "src"),
      "@screen": path.resolve(__dirname, "../screen/src"),
    },
  },
  css: {
    postcss: {
      plugins: [tailwindcss, autoprefixer],
    },
  },
  server: {
    proxy: {
      // "/api": {
      //   target: "http://127.0.0.1:8081/",
      //   changeOrigin: true,
      // },
    },
  },
});
